<?php namespace App\Service\Admin;


use App\Model\Admin\ActionLogModel;
use App\Service\BaseService;

/**
 * 系统操作日志管理-服务类
 * @author LZH
 * @since: 2021/08/12
 * Class ActionLogService
 */
class ActionLogService extends BaseService
{
    /**
     * 构造函数
     * LevelService constructor.
     */
    public function __construct()
    {
        $this->model = new ActionLogModel();
        parent::__construct();
    }

	/**
     * 获取数据列表
     * @return array
     * @since 2021/08/12
     * @author LZH
     */
    public function getList()
    {
        // 查询条件
        $map = [];

        // 只取登录日志
        $map[] = ['type' => [2,"<="]];

        // 用户账号
        $username = $this->getRequestParam('username');
        if ($username) {
            $map[] = ["username" => [$username]];
        }
        return parent::getList($map);
    }


}